package lab1;

public class Test13 {
    public static void main(String[] args) {
        for (int number = 1; number < 1000; number++) {
            int a;      //定义个位
            int b;      //定义十位
            int c;      //定义百位
            c = number / 100;
            b = number % 100 / 10;
            a = number % 10;
            if (a * a * a + b * b * b + c * c * c == number) {
                System.out.println(number);
            }
        }
    }
}
